package com.songtech.lottery.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description: 微信配置信息类
 *
 * @Author: RenTie
 * @Date: 2018-12-24 13:26
 **/
@Component(value = "wxConfig")
public class WxConfig {
    /**
     * 微信公众号appid
     */
    private String appid;
    /**
     * 微信公众号appSecret
     */
    private String appsecret;
    /**
     * 微信商户号
     */
    private String mchid;
    /**
     * 微信商户号API密钥
     */
    private String paternerkey;

    public String getAppid() {
        return appid;
    }

    @Value("${wechat.appid}")
    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getAppsecret() {
        return appsecret;
    }
    @Value("${wechat.appsecret}")
    public void setAppsecret(String appsecret) {
        this.appsecret = appsecret;
    }

    public String getMchid() {
        return mchid;
    }
    @Value("${wechat.mchid}")
    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getPaternerkey() {
        return paternerkey;
    }
    @Value("${wechat.paternerkey}")
    public void setPaternerkey(String paternerkey) {
        this.paternerkey = paternerkey;
    }
}
